<html>
<meta charset="UTF-8"/> 
<body>
	<div id="container"></div>
</body>
<script src="../practice/jQuery/jquery1.7.1.js">
</script>

<script>
var START = "https://helloworldi042416trial.hanatrial.ondemand.com/JerryTest/";
var HCP = "https://helloworldi042416trial.hanatrial.ondemand.com/jerrytest?userId=i042416";
var LOCAL = "http://localhost:9098/JerryServlet/Hello?userId=";
var ABAP = "https://ldai2ag3.wdf.sap.corp:44356/sap/crm/social_print?userId=";
var PREFIX = "i04241";
function main() {
  for( var i = 0; i < 5; i++) {
    var url = ABAP + PREFIX + i;
	  var html = getPostByAJAX(url);
    console.log("response: " + html);
  }
}

$(function(){ 
	main();
}); 

function getPostByAJAX(requestURL){
   var html = $.ajax({
  	url: requestURL,
  	async: true}).responseText; 
   return html;
}

</script>
</html>